import { applyMiddleware, createStore } from 'redux';
import thunk from 'redux-thunk'
import { reducer } from './reducer'

const state = {}
export const store = createStore(reducer, state , applyMiddleware(thunk))
store.subscribe(() => {
    console.log('store---:',store.getState());
})